import Vue from 'vue'
import Router from 'vue-router'
import index from '@/view/structure/index'
import user from '@/view/user/user'
import users from '@/view/user/users'
import job from '@/view/job/job'
import manage from '@/view/job/job_manage'
import login from '@/view/login/index'


Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      component: index,
    }, {
      path: '/user',
      component: user,
    }, {
      path: '/users',
      component: users,
    }, {
      path: "/job",
      component: job,
      children: [
        {
          path: 'manage',
          component: manage
        }
      ]
    }, {
      path: "/login",
      component: login,
    }
  ]
})


